home *** CD-ROM | disk | FTP | other *** search
- import java.util.Vector;
- import javax.microedition.lcdui.Graphics;
-
- public class SpriteVector extends Vector {
- // $FF: renamed from: a AutoSprite
- AutoSprite field_0 = null;
-
- public void draw(Graphics var1) {
- if (!((Vector)this).isEmpty()) {
- for(int var2 = 0; var2 < ((Vector)this).size(); ++var2) {
- this.field_0 = (AutoSprite)((Vector)this).elementAt(var2);
- this.field_0.draw(var1);
- }
- }
-
- }
-
- public void tick() {
- if (!((Vector)this).isEmpty()) {
- for(int var1 = 0; var1 < ((Vector)this).size(); ++var1) {
- this.field_0 = (AutoSprite)((Vector)this).elementAt(var1);
- if (this.field_0.getState() == 1) {
- ((Vector)this).removeElementAt(var1);
- } else if (this.field_0.toString() == "balloon") {
- this.field_0.tick(true);
- } else if (this.field_0.toString() == "missile") {
- this.field_0.tick(false);
- } else if (this.field_0.toString() == "box") {
- this.field_0.tick(false);
- }
- }
- }
-
- }
- }
-